package name.jautzy.esi.client.service;

import name.jautzy.esi.client.model.EsiComment;
import name.jautzy.esi.client.model.EsiUser;
import name.jautzy.esi.client.model.LoginInfo;

import com.extjs.gxt.ui.client.data.ListLoadResult;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("login")
public interface LoginService extends RemoteService {
  public LoginInfo login(String requestUri);
  
  public EsiUser getCurrentUser();
  public void updateUser(EsiUser user);
  
  public EsiComment addComment(String fitId, String comment);
  public ListLoadResult<EsiComment> getComments(String fitId);
}
